package models

import (
	"strings"
)

// ISO4217Currency ISO 4217 货币代码验证
var ISO4217Currencies = map[string]bool{
	"USD": true, "EUR": true, "GBP": true, "JPY": true, "CHF": true,
	"CAD": true, "AUD": true, "NZD": true, "SEK": true, "NOK": true,
	"DKK": true, "PLN": true, "CZK": true, "HUF": true, "RUB": true,
	"CNY": true, "HKD": true, "SGD": true, "KRW": true, "INR": true,
	"BRL": true, "MXN": true, "ZAR": true, "TRY": true, "THB": true,
	// 添加更多常用货币...
}

// IsValidISO4217Currency 验证是否为有效的ISO 4217货币代码
func IsValidISO4217Currency(currency string) bool {
	return ISO4217Currencies[strings.ToUpper(currency)]
}